package org.hypnus.e.tag;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.BodyTag;

import org.hypnus.e.util.EConstants;
import org.hypnus.e.util.TagType;
import org.hypnus.e.util.TagUtil;

public class ComboboxTag extends AbstractTag {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String disabled;

	private String type = TagType.COMBOBOX ;
	
	private String paramExp ;
	
	public String getParamExp() {
		return paramExp;
	}

	public void setParamExp(String paramExp) {
		this.paramExp = paramExp;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getDatatype() {
		return datatype;
	}

	public void setDatatype(String datatype) {
		this.datatype = datatype;
	}

	public String getDisabled() {
		return disabled;
	}

	public void setDisabled(String disabled) {
		this.disabled = disabled;
	}


	@Override
	public int doStartTag() throws JspException {
		TagUtil tagUtil = TagUtil.getInstance() ;
//		for(int i= 0 ;i<10000 ;i++){
			StringBuilder builder = tagUtil.prepareAttribute(this, EConstants.TAG_COMBOBOX);
			tagUtil.write(pageContext, builder.toString()) ;
//		}
		
		return BodyTag.EVAL_BODY_INCLUDE;
	}
	
	

}
